package gui;

import javax.swing.JOptionPane;

public class OptionPane extends JOptionPane
{
	
	public static void showError(String title, String message)
	{
		JOptionPane.showMessageDialog(null, message, title, JOptionPane.ERROR_MESSAGE);
	}

	public static void showMessage(String title, String message)
	{
		JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE);
	}
	
	public static int showConfirm(String message)
	{
		return JOptionPane.showConfirmDialog(null, message);
	}

	static String showInput(String title, String message)
	{
		return JOptionPane.showInputDialog(null, title, message);
	}
}
